package com.hexb.llk.impl
{
	import com.hexb.llk.arithmetic.BaseConnectArithmetic;
	import com.hexb.llk.data.BaseSnapshot;
	import com.hexb.llk.data.Element;
	
	public class ConnectArithmeticWithSnapshot extends BaseConnectArithmetic{
		
		private static var _instance:ConnectArithmeticWithSnapshot = new ConnectArithmeticWithSnapshot() ;
		
		static public function getInstance():ConnectArithmeticWithSnapshot{
			return _instance ;
		}
		
		public function ConnectArithmeticWithSnapshot(){
			super();
		}
		
		public function hasConnectPath(p1:Element, p2:Element, snapshot:BaseSnapshot):Boolean{
			super.hasConnectPath(p1,p2,snapshot.getLayout());
		}
		
		override public function getConnectPath():Array{
			return super.getConnectPath();
		}
		
		override public function setCanCrossFun(fun:Function):void{
			super.setCanCrossFun(fun);
		}
		
		override public function hasConnectElement(elements:Array,snapshot:BaseSnapshot):Boolean {
			return super.hasConnectElement(elements,snapshot.getLayout());
		}
	}
}